package Week03.Day01;
/**
 * 家具类
 */
public class Furniture {
    /**类型*/
    private String type;
    /**面积*/
    private double area;
    public Furniture(){

    }
    public Furniture(String type,double area){
        this.type = type;
        this.area = area;
    }
    /**介绍的方法*/
    public void intro(){
        System.out.println("这是一个占地" + this.area + "平方米的" + this.type);
    }
    /**用处*/
    public  void use(){
        System.out.println("它可以放东西");
    }
    public String getType(){
        return this.type;
    }
    public void setType(){
        this.type = type;
    }
    public double getArea(){
        return this.area;
    }
    public void setArea(){
        this.area = area;
    }
}
